﻿@model IkoulaACDF.Models.AcdfGuessBook

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
        @Html.HiddenFor(model => model.UserId)
    <div class="form-horizontal">
        <h4>AcdfGuessBook</h4>
        <hr />
        @Html.ValidationSummary(true)

        <div class="form-group">
            @Html.LabelFor(model => model.Message, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @*@Html.EditorFor(model => model.Message)*@
                @Html.TextAreaFor(model => model.Message, new { rows = "5", cols = "80" })
                @Html.ValidationMessageFor(model => model.Message)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.AspNetUser.UserName, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @*@Html.EditorFor(model => model.Date)*@
                @Html.TextBoxFor(model => model.AspNetUser.UserName, new { @class = "form-control", @readonly = "readonly" })
                @Html.ValidationMessageFor(model => model.AspNetUser.UserName)
            </div>
        </div>


        <div class="form-group">
            @Html.LabelFor(model => model.Date, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @*@Html.EditorFor(model => model.Date)*@
                @Html.TextBoxFor(model => model.Date, new { @class = "form-control", @readonly = "readonly" })
                @Html.ValidationMessageFor(model => model.Date)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
